package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(20);not null;"`
	Password string `gorm:"type:char(32);not null;"`
	Name     string `gorm:"type:varchar(20);not null;"`
	Address  string `gorm:"type:varchar(200);not null;"`
	Image    string `gorm:"type:varchar(500);not null;"`
}

type UserLogin struct {
	gorm.Model
	UserId int64 `gorm:"type:int(11);not null;"`
}

type UserIdCard struct {
	gorm.Model
	UserId   int64  `gorm:"type:int(11);not null;"`
	IdCard   string `gorm:"type:char(18);not null;"`
	RealName string `gorm:"type:varchar(20);not null;"`
}
